﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace GVVVM
{
    public partial class LoginFrm : Form
    {

        public string UserName;
        public string Password;
        
        public LoginFrm()
        {
            InitializeComponent();
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            UserName = textBox1.Text;
            Password = textBox2.Text;
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void cancelButton_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }
        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);
            Graphics myGraph = e.Graphics;
            Pen pen = new Pen(Color.Black, 1);
            myGraph.DrawRectangle(pen, 0, 0, 219, 79);
            
        }
        
    }
}